﻿using System;


public interface InterfaceA
{
    void printCapitalLetter();
}


public interface InterfaceB
{
    void printLowercaseLetter();
}


public class Print : InterfaceA, InterfaceB
{
   
    public void printCapitalLetter()
    {
        Console.WriteLine("大写英文字母表：");
        for (char c = 'A'; c <= 'Z'; c++)
        {
            Console.Write(c + " ");
        }
        Console.WriteLine();
    }

   
    public void printLowercaseLetter()
    {
        Console.WriteLine("小写英文字母表：");
        for (char c = 'a'; c <= 'z'; c++)
        {
            Console.Write(c + " ");
        }
        Console.WriteLine();
    }
}


class Program
{
    static void Main(string[] args)
    {
        // 创建Print对象并赋值给InterfaceA变量a
        InterfaceA a = new Print();
        a.printCapitalLetter();

        // 创建Print对象并赋值给InterfaceB变量b
        InterfaceB b = new Print();
        b.printLowercaseLetter();
    }
}
